Home | Trees | Index | Help |
|
---|
Package lemon :: Package external :: Package Cheetah :: Package Templates :: Module _SkeletonPage :: Class _SkeletonPage |
|
BaseServlet
--+ |Servlet
--+ |_SettingsCollector
--+ | | |SettingsManager
--+ |WebInputMixin
--+ |Template
--+ | _SkeletonPage
A baseclass for the SkeletonPage template
Method Summary | |
---|---|
__init__(self,
*args,
**KWs)
| |
Create a body tag from the entries in the dict bodyTagAttribs. | |
Return a string representing the current localtime. | |
Return a string representing the current yr. | |
format a dict of metaTag definitions into an HTML version... | |
returns a string containing an HTML <tag>... | |
Dynamically generate an image tag. | |
Return a formatted version of the javascriptTags and javascriptLibs dictionaries. | |
Return a formatted vesion of the self._metaTags dictionary, using the... | |
spacer(self,
width,
height)
| |
Return a formatted version of the self._stylesheetLibs and self._stylesheets dictionaries. | |
Inherited from Template | |
Compile the template. | |
Return a reference to the current errorCatcher... | |
Return the class code the compiler generated, or None if no compilation took place. | |
Return the module code the compiler generated, or None if no compilation took place. | |
A hook for getting the contents of a file. | |
Get a variable from the searchList. | |
Test if a variable name exists in the searchList. | |
Refresh a cache item. | |
Allows enable the Template to function as a standalone command-line program for static page generation. | |
Return a reference to the searchlist... | |
Break reference cycles before discarding a servlet. | |
Test if a variable name exists in the searchList. | |
Called by the Compiler class, to add new methods at runtime as the compilation process proceeds. | |
Used to dynamically bind a plain function as a method of the Template instance. | |
Generate a temporary file name. | |
Imports a python .py module as if it were part of the package given by 'packageName'. | |
Used by the Compiler to do correct importing from Cheetah templates when the template is compiled via the Template class' interface rather than via 'cheetah compile'. | |
Imports the given module from the given directory. | |
This is the method that #include directives translate into. | |
Returns a Python Package that thinks it came from 'dirName'. | |
Inherited from SettingsManager | |
Returns a shallow copy of the settings dictionary... | |
Returns a deep copy of the settings dictionary... | |
Return a string with the settings in .ini file format. | |
True/False... | |
Set a setting in self._settings. | |
Get a setting from self._settings, with or without a default value. | |
Return a reference to the settings dictionary... | |
Update the settings with a selective merge or a complete overwrite. | |
Update the settings from a text file using the syntax accepted by Python's standard ConfigParser module (like Windows .ini files). | |
See the docstring for .updateSettingsFromConfigFile() The caller of this method is responsible for closing the inFile file object. | |
See the docstring for .updateSettingsFromConfigFile()... | |
Update the settings from variables in a Python source file. | |
Update the settings from a code in a Python src string. | |
Write all the settings that can be represented as strings to an .ini style config file. | |
Write all the settings that can be represented as strings to an .ini style config string. | |
| |
A hook that allows for complex setting initialization sequences that involve references to 'self' or other settings. | |
Inherited from _SettingsCollector | |
Extract all the attributes of a SettingsContainer subclass. | |
Check if 'thing' is a Python module or a subclass of SettingsContainer. | |
A hook for any neccessary path manipulations. | |
| |
Return the settings from a config file that uses the syntax accepted by Python's standard ConfigParser module (like Windows .ini files). | |
Returns all settings from a SettingsContainer or Python module. | |
Returns all settings from a SettingsContainer or Python module. | |
Return new settings dict from variables in a Python source file. | |
Return a dictionary of the settings in a Python src string. | |
Inherited from Servlet | |
| |
| |
| |
| |
| |
Inherited from WebInputMixin | |
Import web transaction variables in bulk. |
Class Variable Summary | |
---|---|
str |
docType = '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...
|
str |
htmlTag = '<html>'
|
str |
siteCopyrightName = 'Tavis Rudd'
|
str |
siteCredits = 'Designed & Implemented by Tavis Rudd'
|
str |
siteDomainName = 'www.example.com'
|
str |
title = ''
|
Inherited from Template | |
list |
_legalKWs = ['_globalSetVars', '_preBuiltSearchList']
|
Inherited from _SettingsCollector | |
lock |
_sysPathLock = <thread.lock object at 0x008AD180>
|
Inherited from Servlet | |
NoneType |
application = None |
NoneType |
request = None |
NoneType |
session = None |
NoneType |
transaction = None |
Inherited from BaseServlet | |
int |
_reusable = 1 |
int |
_threadSafe = 0 |
Method Details |
---|
bodyTag(self)Create a body tag from the entries in the dict bodyTagAttribs. |
currentDate(self, formatString='%b %d, %Y')Return a string representing the current localtime. |
currentYr(self)Return a string representing the current yr. |
formatMetaTags(self, metaTags)format a dict of metaTag definitions into an HTML version |
formHTMLTag(self, tagName, attributes={})returns a string containing an HTML <tag> |
imgTag(self, src, alt='', width=None, height=None, border=0)Dynamically generate an image tag. Cheetah will try to convert the src argument to a WebKit serverSidePath relative to the servlet's location. If width and height aren't specified they are calculated using PIL or ImageMagick if available. |
javascriptTags(self)Return a formatted version of the javascriptTags and javascriptLibs dictionaries. Each value in javascriptTags should be a either a code string to include, or a list containing the JavaScript version number and the code string. The keys can be anything. The same applies for javascriptLibs, but the string should be the SRC filename rather than a code string. |
metaTags(self)Return a formatted vesion of the self._metaTags dictionary, using the formatMetaTags function from Cheetah.Macros.HTML |
stylesheetTags(self)Return a formatted version of the self._stylesheetLibs and self._stylesheets dictionaries. The keys in self._stylesheets must be listed in the order that they should appear in the list self._stylesheetsOrder, to ensure that the style rules are defined in the correct order. |
Class Variable Details |
---|
docType
|
htmlTag
|
siteCopyrightName
|
siteCredits
|
siteDomainName
|
title
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:08:07 2003 | http://epydoc.sf.net |